#ifndef NORMALNODE_H
#define NORMALNODE_H

#include "node.h"

class NormalNode : public Node
{
private:

    int varianceNode;
    int meanNode;

    virtual bool inRange(double v);

public:
    NormalNode(double val);
    NormalNode(QString label, double val, double sd, Node * meanNode, Node * varianceNode, bool isObserved = false);

    void setMeanNode(Node * node);
    void setVarianceNode(Node * node);

    virtual double computeLogLikelihood();
};

#endif // NORMALNODE_H
